package com.ds.kafka;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

//@RestController
//@Api(value = "kafka", tags = { "kafka" })
public class KafkaController {
	
	@Autowired
	KafkaProducer kafkaProducer;
	
	@ApiOperation(value = "kafkatest")
	@GetMapping("/kafkatest")
	public void sendMsg(String msg){
		kafkaProducer.send(msg);
	}

}
